import Vue from 'vue'
import Router from 'vue-router'
import board from '../components/Board'
import order from '../components/Order.vue'
import car from '../components/Car.vue'
import price from '../components/Price.vue'
import merchant from '../components/Merchant.vue'
import login from '../components/Login.vue'
import main from '../components/Main.vue'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            component: login
        },
        {
            path: '/main',
            component: main,
            children: [{
                    path: '/main',
                    component: board
                },
                {
                    path: '/board',
                    component: board
                },
                {
                    path: '/order',
                    component: order
                },
                {
                    path: '/car',
                    component: car
                },
                {
                    path: '/price',
                    component: price
                },
                {
                    path: '/merchant',
                    component: merchant
                }
            ]
        },

    ]
})